class Constants < ActiveRecord::Base
  
  ORDER_STATUS_YDD = "预订单"
  ORDER_STATUS_SQD = "申请单"
  ORDER_STATUS_YCP = "已出票"
  ORDER_STATUS_YQX = "已取消"
  ORDER_STATUS_YFK = "已付款"
  ORDER_STATUS_YZF = "已作废"
  ORDER_STATUS_GQD = "改签单"
  ORDER_STATUS_YTD = "已退单"
  ORDER_STATUS_WQR = "未确认"
  
  TICKET_STATUS_WQR = "未确认"
  TICKET_STATUS_QRCP = "确认出票"
  TICKET_STATUS_LJCP = "立即出票"
  TICKET_STATUS_YQX = "已取消"
  TICKET_STATUS_GQD = "改签单"
  TICKET_STATUS_YTP = "已退票"
  TICKET_STATUS_YZF = "已作废"
  TICKET_STATUS_YCP = "已出票"
  
  WEB_ORDER_STATUS_DDZF = "等待支付"
  WEB_ORDER_STATUS_SQTP = "申请退票"
  WEB_ORDER_STATUS_TPWC = "退票完成"
  WEB_ORDER_STATUS_ZFCG = "支付成功"
  WEB_ORDER_STATUS_ZZCL = "正在处理"
  WEB_ORDER_STATUS_SQQX = "申请取消"
  WEB_ORDER_STATUS_CLWC = "处理完成"
  WEB_ORDER_STATUS_KHSC = "客户删除"
  WEB_ORDER_STATUS_CPSB = "自动出票失败"
  
  ACTIVITY_TYPE_FHY = "非会员"
  ACTIVITY_TYPE_SQTJP = "申请特价票"
  ACTIVITY_TYPE_SBX = "送保险"
  ACTIVITY_TYPE_SJC = "送机场"
  ACTIVITY_TYPE_TJP = "特价机票"
  
  PAY_TYPE_XJ = "现金"
  PAY_TYPE_ZP = "支票"
  PAY_TYPE_QT = "欠条"
  PAY_TYPE_ZZ = "转账"
  PAY_TYPE_SK = "刷卡"
  PAY_TYPE_JF = "积分"
  
  SEND_START_TIME = "05:30"
  SEND_END_TIME = "18:30"
  JJ_START_TIME = "05:30"
  JJ_END_TIME = "18:30"

  DEFAULT_JJ_ADDRESS = "接机地址" #"宁夏路127-1号鹏飞国际航空"

  COMPANY_NAME = "某某" #鹏飞"
  COMPANY_WEBSITE = "www.xxx.com" #"www.pftrip.com"
  COMPANY_PHONE = "0532-88888888" #0532-83835555

  USER_TYPE_ADMIN = "ADMIN"
  USER_TYPE_OFFER = "OFFER"
  USER_TYPE_AGENT = "AGENT"
  
  COMMON_PRICE = "COMMON_PRICE"  #Web价格方面的一些常量，普通价格，特价，特殊仓位。
  SPECIAL_OFFER = "SPECIAL_OFFER"
  POSITION = "POSITION"
  
  #这是商户URL地址
  PLATFORM_URL = "localhost:3000"
  #这是商户的商户ID
  PLATFORM_MER_ID = "1070003926"
  #这是商户的YeePay登录名，分帐时用到
  PLATFORM_LOGIN_NAME = "qdticket@yahoo.com.cn"
  #平台的交易是要扣除的费用Amount
  PLATFORM_RESERVED_AMT = 5
  
  #YeePay相关常量
  YEEPAY_CMD_BUY = "Buy"
  YEEPAY_CMD_REFUNDEXT = "RefundExt" #退款
  YEEPAY_URL = "www.yeepay.com"
  #YeePay分帐接口
  YEEPAY_PRORATE_ACTION = "/app-airsupport/AirSupportService.action"
  
  DEFAULT_RAKE_OFF = 3
  DEFAULT_AIRDROME_TAX = 50
  DEFAULT_FUEL_TAX = 150          #800公里以下80 800公里以上150
  DEFAULT_INSURANCE_PRICE = 20
  
  PNR_REPEAT_DAY = 15  #pnr重复间隔时间
  
  MONTH_CODE = Array.new(["JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC"])
  WEEK_CODE = Array.new(["MON","TUE","WED","THU","FRI","SAT","SUN"]) 
  
  #socket命令中需要替换的换行符标志位，在java文件中会将其替换为\r
  SEPARATE_KEY = "--"
  
  #SMS_URL = "http://222.173.82.200:8080/smsServer/submit"
  #SMS_USER_NAME = "changxiao"
  #SMS_PASSWORD = "changxiao"
  #SMS_HAVEYD = "4"
  
  SMS_URL = "http://222.173.82.200:8080/smsServer/submit"
  SMS_USER_NAME = "8005323563"
  SMS_PASSWORD = "981246"
  SMS_HAVEYD = "4"
  
#  SERVER_INFO = "pfhk.3322.org"
#  SERVER_PORT = 350
#  USERNAME = "user80"
#  PASSWORD = "pswd80"
  
  SERVER_INFO = "pek4.3322.org"
  SERVER_PORT = 350
  USERNAME = "tao22070"
  PASSWORD = "tao22070"
  
end
